import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/PersonalCenter',
    component: () => import(/* webpackChunkName: "PersonalCenter" */ '../views/PersonalCenter.vue')
  },
  {
    path: '/Invoice',
    component: () => import(/* webpackChunkName: "Invoice" */ '../views/Invoice.vue')
  },
  {
    path: '/visit',
    component: () => import(/* webpackChunkName: "visit" */ '../views/visit.vue')
  },
  {
    path: '/news',
    component: () => import(/* webpackChunkName: "news" */ '../views/news.vue')
  },
  {
    path: '/Myclients',
    component: () => import(/* webpackChunkName: "Myclients" */ '../views/Myclients.vue')
  },
  {
    path: '/Logisticslist',
    component: () => import(/* webpackChunkName: "evaluate" */ '../views/Logisticslist.vue')
  },
  {
    path: '/fahuo/:id',
    component: () => import(/* webpackChunkName: "fahuo" */ '../views/fahuo.vue')
  },
  {
    path: '/pj/:id',
    component: () => import(/* webpackChunkName: "pj" */ '../views/pj.vue')
  },
  {
    path: '/kehuxiangq/:id',
    component: () => import(/* webpackChunkName: "kehuxiangq" */ '../components/kehuxiangq.vue')
  },
  {
    path: '/xinzeng',
    component: () => import(/* webpackChunkName: "xinzeng" */ '../components/xinzeng.vue')
  },
  {
    path: '/banben',
    component: () => import(/* webpackChunkName: "banben" */ '../components/banben.vue')
  },
  {
    path: '/wuliupj/:id',
    component: () => import(/* webpackChunkName: "wuliupj" */ '../views/wuliupj.vue')
  },
  // {
  //   path: '/about',
  //   name: 'About',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
